"""变量点一基本数据类型"""
#字符串类型str
name = "张三"
#整型类型int
age = 10
#浮点类型float
height = 185.5
#布尔型bool
handsome = True
#复数complex  i另有用，拿j代替
comp1 = -3+4j

print("height: ",height,"age: ",age)
print("姓名:",name,"帅吗?",handsome)
print(type(name))
print(type(height))
print(type(handsome))
print(type(comp1))

print("-" *100)

"""
变量名
1.以字母数字下划线开头
2.不能以数字开头
3.不能用关键字
4.区分大小写
"""
#下划线命名法
user_name = '张三'
#驼峰命名法
userName = '张三'
USERNAME = 'zhangsan'
print(user_name,userName,USERNAME)

print("_" *100)

"""
运算符
"""
a=5 
b=2
print(a+b)
print(a-b)
print(a*b)
print(a/b) #得到float
print(a//b) #整除
print(a%b) #取模（求余数）
print(a**b) #a^b(a的b次方)

print("*"*100)

pwd = "你好，"
#字符串直接通过+拼接
print(pwd+user_name)
#字符串可与数字相乘，结果为重复字符串n次
print("hello "*10)